<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="s" uri="strutsTags"%>
<%@taglib prefix="ty" uri="/wyzzTags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<head>
	<base href="<%=basePath%>">
	<link href="resource/css/style.css" rel="stylesheet" type="text/css" />
	<jsp:include flush="true" page="../sitemesh/jsPackage.jsp"></jsp:include>
	<script type="text/JavaScript" src="resource/js/hrm/profile.js"></script>
	<title>变动记录</title>
</head>
<body onload="hrm.common.check_order();">
	<s:component template="bodyhead" />
	<form action="profile/listTransfer.action" id="listForm" method="post">
		<table width="100%" class="formtable">
			<tr>
				<td>
					<table width="100%">
						<tr>
							<s:textfield id="employeeId" label="员工" name="employeeId"
								size="12" maxlength="64" />
							<td align="right">
								变动前组织:
							</td>
							<td>
								<s:orgselector id="selector1" name="eftOldDeptName"
									hiddenFieldName="eftOldDeptNo" isShowDisable="show" />
							</td>
							<td align="right">
								变动日期:
							</td>
							<td>
								<s:textfield id="eftTransferDate" name="eftTransferDate"
									size="10" maxlength="10" />
								<img onclick="WdatePicker({el:'eftTransferDate'})"
									class="dateimg"
									src="resource/js/My97DatePicker/skin/datePicker.gif">
								到
								<s:textfield id="eftTransferDateTo" name="eftTransferDateTo"
									size="10" maxlength="10" />
								<img onclick="WdatePicker({el:'eftTransfer DateTo'})"
									class="dateimg"
									src="resource/js/My97DatePicker/skin/datePicker.gif">
							</td>
						</tr>
						<s:select label="变动种类" name="eftTransferType"
							list="#{'':'请选择','0':'平调','1':'晋升',2:'降级',3:'转岗',4:'转正'}" />
						<td align="right">
							变动后组织:
						</td>
						<td>
							<s:orgselector id="selector2" name="eftNewDeptName"
								hiddenFieldName="eftNewDeptNo" isShowDisable="show" />
						</td>
						<s:textfield label="变动原因" id="eftReason" name="eftReason"
							size="22" maxlength="128" />
						</tr>
					</table>
				</td>
				<td>
					<input title="[Alt+F]" accesskey="F" name="submit_search"
						id="submit_search" class="button" type="submit" value="查询" />
					<input title="[Alt+A]" accesskey="A" name="submit_all"
						id="submit_all" class="button" type="reset" value="重置"
						onclick="window.location='listTransfer.action'" />
				</td>
			</tr>
		</table>

		<!-- 操作 -->
		<div class="operatediv">
			<input type="hidden" name="searchOrExport" id="searchOrExport" />
			<s:hidden id="output-ommId" name="outmatchModelId" />
			<s:hidden id="output-ioName" name="outputIoName" />
			<span class="operatedivleft"> <ty:auth auths="101,2 or 101,3">
					<input class="button" type="button"
						onclick="initDivImmUpload('IEmptransfer');" value="数据导入" />
					<input id="btnOutput" class="button" type="button" value="数据导出"
						onclick="HRMCommon.export_check('export');" />
				</ty:auth> </span>
			<span class="operatedivright">本次查询共得到<s:property
					value="page.totalRows" />条变动记录</span>
		</div>

		<table id="profiletable" cellpadding="0" cellspacing="0" width="100%"
			border="0" class="gridtableList">
			<s:hidden id="order" name="page.order" />
			<s:hidden id="operate" name="page.operate" />
			<s:hidden id="page.currentPage" name="page.currentPage" />
			<tr>
				<th>
					<a
						onclick="hrm.common.order_submit('emp.empDistinctNo', 'listForm');">员工编号</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='emp.empDistinctNo_img'>
				</th>
				<th>
					<a onclick="hrm.common.order_submit('emp.empName', 'listForm');">员工姓名</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='emp.empName_img'>
				</th>
				<th>
					<a
						onclick="hrm.common.order_submit('eftTransferDate', 'listForm');">变动日期</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='eftTransferDate_img'>
				</th>
				<th>
					<a
						onclick="hrm.common.order_submit('eftTransferType', 'listForm');">变动种类</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='eftTransferType_img'>
				</th>
				<th>
					<a
						onclick="hrm.common.order_submit('oldDepartment.departmentName', 'listForm');">变动前部门</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='oldDepartment.departmentName_img'>
				</th>
				<th>
					<a onclick="hrm.common.order_submit('oldPbNo.pbName', 'listForm');">变动前职位</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='oldPbNo.pbName_img'>
				</th>
				<th>
					<a
						onclick="hrm.common.order_submit('newDepartment.departmentName', 'listForm');">变动后部门</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='newDepartment.departmentName_img'>
				</th>
				<th>
					<a onclick="hrm.common.order_submit('newPbNo.pbName', 'listForm');">变动后职位</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='newPbNo.pbName_img'>
				</th>
				<th>
					<a onclick="hrm.common.order_submit('eftReason', 'listForm');">变动原因</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='eftReason_img'>
				</th>
				<th>
					<a onclick="hrm.common.order_submit('eftComments', 'listForm');">备注</a>
					<img src='resource/images/arrow_.gif' width='8' height='10'
						id='eftComments_img'>
				</th>
			</tr>
			<s:if test="!transferList.isEmpty()">
				<s:iterator value="transferList" status="transferStatus">
					<tr align="center" id="<s:property value='eftId'/>">
						<td nowrap="nowrap">
							<s:property value="employee.empDistinctNo" />
						</td>
						<td nowrap="nowrap">
							<s:property value="employee.empName" />
						</td>
						<td nowrap="nowrap">
							<s:property value="eftTransferDate" />
						</td>
						<input type="hidden" id="type<s:property value='eftId'/>"
							value="<s:property value='eftTransferType'/>" />
						<input type="hidden" id="deptOld<s:property value='eftId'/>"
							value="<s:property value='eftOldDeptNo.id'/>" />
						<input type="hidden" id="deptNew<s:property value='eftId'/>"
							value="<s:property value='eftNewDeptNo.id'/>" />
						<td nowrap="nowrap">
							<s:if test="eftTransferType==0">平调</s:if>
							<s:if test="eftTransferType==1">晋级</s:if>
							<s:if test="eftTransfedType==2">降级</s:if>
							<s:if test="eftTransferType==3">转岗</s:if>
							<s:if test="eftTransferType==4">转正</s:if>
						</td>
						<td nowrap="nowrap">
							<s:property value="eftOldDeptNo.departmentName" />
						</td>
						<td nowrap="nowrap">
							<s:property value="eftOldPbId.pbName" />
						</td>
						<td nowrap="nowrap">
							<s:property value="eftNewDeptNo.departmentName" />
						</td>
						<td nowrap="nowrap">
							<s:property value="eftNewPbId.pbName" />
						</td>
						<td>
							<s:property value="eftReason" />
						</td>
						<td>
							<s:property value="eftComments" />
						</td>
					</tr>
				</s:iterator>
			</s:if>
			<s:else>
				<tr>
					<td colspan="10" align="center">
						无相关变动记录！
					</td>
				</tr>
			</s:else>
		</table>
		<s:pager end="page.end" pageNo="page.currentPage"
			totalRows="page.totalRows" totalPages="page.totalPages"
			formId="listForm" start="page.start" />
	</form>
	<jsp:include flush="true" page="../io/div_omm_select.jsp"></jsp:include>
	<script type="text/javascript">
	model.simple.setParentIFrameFull("IFrame1");
</script>
	<jsp:include flush="true" page="../io/div_upload.jsp"></jsp:include>
</body>